<?php
	session_start();
	if(isset($_SESSION['loggedUser']))
	{
		unset($_SESSION['loggedUser']);
	}
	
	session_destroy();
	
	header("Location: main.php");